{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>系统</span>
            <span class="icon-angle-right"></span>
            <span>系统设置</span>
            <span class="icon-angle-right"></span>
            <span><a href="{:url('index')}">扩展变量</a></span>
            <span class="icon-angle-right"></span>
            <span>{$info ? '编辑' : '添加'}扩展变量</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <div class="m-form">
                <form class="layui-form" id="j_form">
                    <table class="m-table">
                        <thead>
                            <tr>
                                <th colspan="2">{$info ? '编辑' : '添加'}扩展变量</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td width="15%"><label for="key">变量标识<em>*</em></label></td>
                                <td><input type="text" class="u-ipt u-ipt-long" name="key" id="key" placeholder="请输入变量标识" value="{$info.key}" /><span>由数字、字母与下划线组成，且只能以字母开头。如：title</span></td>
                            </tr>
                            <tr>
                                <td width="15%"><label for="title">变量名称<em>*</em></label></td>
                                <td><input type="text" class="u-ipt u-ipt-long" name="title" id="title" placeholder="请输入变量名称" value="{$info.title}" /></td>
                            </tr>
                            <tr>
                                <td><label for="value">变量值</label></td>
                                <td><div class="m-textarea"><textarea name="value" class="u-tarea" id="value" placeholder="请输入变量值">{$info.value}</textarea></div></td>
                            </tr>
                            <tr>
                                <td><label for="remark">备注</label></td>
                                <td><div class="m-textarea"><textarea name="remark" class="u-tarea" id="remark" placeholder="请输入备注">{$info.remark}</textarea></div></td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="m-form-btn"><input type="hidden" name="id" value="{$info.id}"><button id="j_btn" class="u-btn">确定提交</button></div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}